package com.example.springworkfront.Entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
public class HealthyKey implements Serializable {
    @Column(name = "account")
    private String account;
    @Column(name = "date")
    private String date;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString(){
        return account+" "+date;
    }
}
